str="aa;bb;cc"; str=${str//;/\\n}; echo $str